package com.yhy.common.security.constant;

public interface GrantTypeConstant {
    /**
     * 客户端模式
     */
    String CLIENT_CREDENTIALS = "client_credentials";
    /**
     * 密码模式
     */
    String PASSWORD = "password";
    /**
     * 验证码模式
     */
    String SMS = "sms";
    String WECHAT = "wechat";
    /**
     * 社交模式（1-微信授权登录 2-app运营商一键登录）
     */
    String SOCIAL = "social";

    interface SMS_PARAM {
        String MOBILE = "mobile";
        String CODE = "code";
    }

    interface WECHAT_PARAM {
        String JS_CODE = "code";
        String ENCRYPTED_DATA = "encryptedData";
        String IV = "iv";
    }

    interface SocialType {
        /**
         * 社交模式:短信验证码
         */
        String PHONE = "social_phone";
        /**
         * 社交模式:授权
         */
        String OPENID = "social_openid";
    }

}
